﻿#region 命名空间

using System.Collections.Generic;
using System.Linq;
using System.Web.Services;
using WinnerCMS.BLL;
using WinnerCMS.Common;

#endregion

namespace WinnerCMS.WebUI.Templates.WinnerCMS6.Member
{
    /// <summary>
    ///     FindMember 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/"), WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1),
     System.Web.Script.Services.ScriptService]
    public class FindMember : WebService
    {
        [WebMethod]
        public string[] GetCompletionList(string prefixText, int count)
        {
            var Names = new MemberManage().SearchMember(MyString.SQL_ESC(prefixText)).ToList();

            Names.RemoveRange(count, Names.Count - count);
            return Names.ToArray();
        }
    }
}